package com.bw.gmall.realtime.controller;

import com.bw.gmall.realtime.bean.DiYiZhiBiaoIndicators;
import com.bw.gmall.realtime.service.DiYiZhiBiaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/diyizhibiao")
public class DiYiZhiBiaoController {

    @Autowired
    private DiYiZhiBiaoService diYiZhiBiaoService;
// localhost:8070/diyizhibiao/indicators
    @RequestMapping("/indicators")
    public List<DiYiZhiBiaoIndicators> getIndicators(
            @RequestParam(value = "shopId", defaultValue = "") String shopId,
            @RequestParam(value = "skuId", defaultValue = "") String skuId,
            @RequestParam(value = "dt", defaultValue = "") String dt) {
        return diYiZhiBiaoService.getDiYiZhiBiaoIndicators(shopId, skuId, dt);
    }
}